package com.sxj.product.facade.impl;


import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.dubbo.rpc.RpcContext;
import com.sxj.product.dto.People;
import com.sxj.product.facade.DubboProviderFacade;

@Service(interfaceClass = DubboProviderFacade.class)
@Component
public class DubboProviderFacadeImpl implements DubboProviderFacade {

	@Override
	public People getName(People people) {
		System.out.println("aaaaaaaaaaaaa");
		People a = new People();
		a.setName("MY NAME IS " + people.getName());

		System.out.println(RpcContext.getContext().getAttachment("a"));
		return a;
	}

}
